package com.zpp.system.domain.question;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zpp.common.core.domain.BaseEntity;
import lombok.Data;

@Data
@TableName("tb_question")
public class Question extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    private Long questionId;     //主键，不使用自增，通过mybatis-plus提供的雪花算法来设置

    private String title;        //题目标题

    private Integer difficulty;  //困难等级 1:简单、2:中等、3:困难

    private Long timeLimit;      //时间限制

    private Long spaceLimit;     //空间限制

    private String content;      //题目内容

    private String questionCase; //题目用例

    private String defaultCode;  //默认代码

    private String mainFunc;     //main函数
}
